//面包屑
const path = ['供应商管理', '采购订单', '采购订单列表'];
//搜索条件
const filterOption = {
	items: [{
		label: "关键字",
		type: "input",
		data: undefined,
		placeholder: "",
		value: undefined,
		key: "keyWord"
	},
	{
		label: "款式名称",
		type: "input",
		data: undefined,
		placeholder: "",
		value: undefined,
		key: "www"
	},
	{
		label: "订单状态",
		type: "dropdown",
		data: [],
		placeholder: "请选择",
		value: undefined,
		key: "deliveryPlatform"
	},
	{
		label: "变更处理",
		type: "dropdown",
		data: [],
		placeholder: "请选择",
		value: undefined,
		key: "orderType"
	},
	{
		label: "加工类型",
		type: "dropdown",
		data: [],
		placeholder: "请选择",
		value: undefined,
		key: "originChannel"
	},
	{
		label: "品类",
		type: "dropdown",
		data: [],
		placeholder: "请选择",
		value: undefined,
		key: "billStatus"
	},
	{
		label: "订单类型",
		type: "dropdown",
		data: [],
		placeholder: "请选择",
		value: undefined,
		key: "isSign"
	},
	{
		label: "交货时间",
		type: "datetimerange",
		data: undefined,
		placeholder: "请选择",
		value: undefined,
		key: "outStorageTime"
	},
	{
		label: "创建日期",
		type: "datetimerange",
		data: undefined,
		placeholder: "请选择",
		value: undefined,
		key: "createTime"
	}],
	btnGroup: [{
			label: "查询",
			type: "search"
		},
		{
			label: "清除",
			type: "clear"
		}
	],
	close: true
};
//状态类型
const configArr = [
	{
        color: "brown",
        label: "全部订单",
        value: "type1",
        count: 300
    },
    {
        color: "green",
        label: "待接单",
        value: "type2",
        count: 300
    },
	{
	    color: "orange",
	    label: "待处理变更",
	    value: "type2",
	    count: 300
	},
]
//销售出库单列表
const tableHeaderData = [
	{
		prop:'typeDict.value',
		label:'供应商款号',
		width:'120'
	},
	{
		prop:'saleAfterNumber',
		label:'品类',
		width:'80'
	},
	{
		prop:'customerID',
		label:'款号',
		width:'80'
	},
	{
		prop:'customNumber',
		label:'款式名称',
		width:'120'
	},
	{
		prop:'originChannel',
		label:'商品描述',
		width:'200'
	},
	{
		prop:'deliveryPlatform',
		label:'数量',
		width:''
	},
	{
		prop:'isSign',
		label:'单位',
		width:''
	},
	{
		prop:'isInvoice',
		label:'交货时间',
		width:'200'
	},
	{
		prop:'statusDict.value',
		label:'加工类型',
		width:'200'
	},
	{
		prop:'logisticsNumber',
		label:'客户刻字',
		width:'120'
	},
	{
		prop:'printNo',
		label:'备注信息',
		width:''
	},
	{
		prop:'createTime',
		label:'创建时间',
		width:'200'
	},
	{
		prop:'sureTime',
		label:'修改时间',
		width:'200',
		sortable:'sortable'
	},
	{
		prop:'fff',
		label:'变更处理',
		width:'100',
	},
	{
		prop:'ggg',
		label:'订单状态',
		width:'100',
	},
]
//表格数据
const tableData = [];
const TableSelectID = [];
const TableSelectData = [];
//分页数据
const paginationObject = {
	currentPage: 1,
	pageSize: 1,
	pageTotal: 1,
	total:1,
	num1:1,
	num2:1
}
let Model = {
	data() {
		return {
			Model: {
				path: path,
				paginationObject,
				configArr,
				filterOption: filterOption,
				tableHeaderData,							//销售出库单列表（表头）
				tableData,									//销售出库单列表数据
				InvoiceVisible:false,						//开票弹窗
				RedinvoiceVisible:false,					//红冲发票弹窗
				TableSelectID:[],
				TableSelectData:[],
				allLogistics:[
					{
						label:'顺丰',
						value:'10'
					},
					/*{
						label:'EMS',
						value:'20'
					}*/
				],
				logisticsNumbers:null,
			}
		}
	}
}
export default Model;
